home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / swingall.jar / javax / swing / text / GapContent$UndoPosRef.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-07-15  |  790 b   |  24 lines

  1. package javax.swing.text;
  2.  
  3. final class GapContent$UndoPosRef {
  4.    // $FF: synthetic field
  5.    private final GapContent this$0;
  6.    protected int undoLocation;
  7.    protected GapContent.MarkData rec;
  8.  
  9.    GapContent$UndoPosRef(GapContent var1, GapContent.MarkData var2) {
  10.       this.this$0 = var1;
  11.       this.rec = var2;
  12.       this.undoLocation = var2.getOffset();
  13.    }
  14.  
  15.    protected void resetLocation(int var1, int var2) {
  16.       if (this.undoLocation != var1) {
  17.          this.rec.index = this.undoLocation;
  18.       } else {
  19.          this.rec.index = var2;
  20.       }
  21.  
  22.    }
  23. }
  24.